namespace Digitalmes.Application.Operator;

/// <summary>
/// 操作人信息
/// </summary>
public sealed class OperatorUser
{
    /// <summary>
    /// 登录人ID
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 租户ID
    /// </summary>
    public long TenantId { get; set; } = 0;

    /// <summary>
    /// 登录人信息
    /// </summary>
    public string? Avatar { get; set; }

    /// <summary>
    /// 登录人信息
    /// </summary>
    public string? Username { get; set; }

    /// <summary>
    /// 控制台权限
    /// </summary>
    public int Dashboard { get; set; } = 0;

    /// <summary>
    /// 权限
    /// </summary>
    public List<string>? Ability { get; set; } = new() { "READ", "WRITE", "DELETE" };

    /// <summary>
    /// 角色组
    /// </summary>
    public List<long>? RoleArray { get; set; } = new();

    /// <summary>
    /// 权限
    /// </summary>
    public List<string>? Roles { get; set; } = new() { "admin" };
}
